﻿using Model.ZhanFa;
using SanZhan.Models.Cards.WuJiang;
using SanZhan.Models.Cards.ZhanFa;

namespace SanZhan.Models.User
{
    public class UserWuJiang
    {
        public WuJiangBase heroBase { get; set; }

        public int ID { get; set; }
        public bool IsMain { get; set; }
        public int Level { get; set; }
        public int Stars { get; set; }

        public int Bingli { get; set; }
        public int ShangBing { get; set; }

        public decimal ZaoChengBingRenShangHai { get; set; }
        public decimal ZaoChengCeLueShangHai { get; set; }
        public decimal ShouDaoBingRenShangHai { get; set; }
        public decimal ShouDaoBingRenCeLueShangHai { get; set; }
        public decimal WuliNow { get; set; }
        public decimal ZhiliNow { get; set; }
        public decimal TongshuaiNow { get; set; }
        public decimal SuduNow { get; set; }
        public decimal ZhengzhiNow { get; set; }
        public decimal MeiliNow { get; set; }

        public bool Alive { get; set; }//是否生存
        public bool Action { get; set; }//是否可行动

        public UserTeam? UserTeam { get; set; }
        public UserWuJiang()
        {
            heroBase = new WuJiangBase();
        }
        public UserWuJiang(WuJiangBase _wujiang)
        {
            heroBase = _wujiang;
            SetNow();
        }

        private void SetNow()
        {

            ZaoChengBingRenShangHai = 1;
            ZaoChengCeLueShangHai = 1;
            ShouDaoBingRenShangHai = 1;
            ShouDaoBingRenCeLueShangHai = 1;
            WuliNow = heroBase.Wuli;

            WuliNow = heroBase.Wuli;
            ZhiliNow = heroBase.Zhili;
            TongshuaiNow = heroBase.Tongshuai;
            SuduNow = heroBase.Sudu;
            ZhengzhiNow = heroBase.Zhengzhi;
            MeiliNow = heroBase.Meili;

        }
    }
    public enum Action
    {
        None = 0, Curr = 1, Finish = 2
    }
}
